<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>充值</title>
    {% load static %}
    <link rel="stylesheet" href="{% static 'css/bootstrap.css' %}">
    <style>
        body{
            width: 500px;
        }
        form {
            width: 100%;
        }
        *{
            padding: 0;
            margin: 0;
        }
    </style>
</head>
<body>
<div class="form">
    <form class="form-horizontal" action="{% url 'account:recharge' %}" method="post">
        {% csrf_token %}
        <div class="form-group">
            <label for="inputEmail3" class="col-xs-2 control-label">充值金额</label>
            <div class="col-xs-8">
                <input type="text" class="form-control" id="inputEmail3" placeholder="充值金额" name="balance">
            </div>
        </div>
        <div class="form-group">
             <label for="inputPassword3" class="col-xs-2 control-label"></label>
            <div class="col-xs-10">
                <button type="submit" class="col-xs-10 btn btn-info">确认充值</button>
            </div>
        </div>
{#        <div class="form-group">#}
{#            <label for="inputPassword3" class="col-xs-2 control-label">Password</label>#}
{#            <div class="col-xs-8">#}
{#                <input type="password" class="form-control" id="inputPassword3" placeholder="Password" name="password">#}
{#            </div>#}
{#        </div>#}
    </form>
</div>
</body>
</html>
<script src="{% static 'js/jquery-3.3.1.js' %}"></script>
<script src="{% static 'js/bootstrap.js' %}"></script>
<script>
    {% if messages %}
        {% for message in messages %}
            alert('{{ message }}');
        {% endfor %}
    {% endif %}
</script>
